﻿using Cherry.Agile.Logging;
using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cherry.Agile.SignalR.Hubs.LogHub
{
    public class LoggingHub : Hub<ILogger>
    {
        public void Error( object message)
        {
            Clients.Others.Error(message.ToString());
        }
        public void Error(object message, Exception exception)
        {
            Clients.Others.Error(message.ToString(), exception);
        }
        //public  void LogFormat(LoggerLevels loggerLevels, string format, params object[] args);
        //public  void LogFormat(LoggerLevels loggerLevels, string format, Exception exception, params object[] args);
        //public  void LogFormat(LoggerLevels loggerLevels, IFormatProvider formatProvider, string format, params object[] args);
        //public  void LogFormat(LoggerLevels loggerLevels, IFormatProvider formatProvider, string format, Exception exception
        //                    , params object[] args);
    }
}
